package com.zlq.cn.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 城市开放列表
 * </p>
 *
 * @author zhoucl
 * @since 2022-12-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("city_open")
@ApiModel(value="CityOpen对象", description="城市开放列表")
public class CityOpen implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "城市")

    @NotNull(message = "城市不能为空")
    private String cityCode;

    @ApiModelProperty(value = "城市名称")
    private String cityName;

    @ApiModelProperty(value = "是否开启；1：是，0：否")
    private Boolean open;

    @ApiModelProperty(value = "项目")
    private String project;

    @ApiModelProperty(value = "开始时间")
    private LocalDateTime beginTime;

    @ApiModelProperty(value = "结束时间")
    private LocalDateTime endTime;

}
